import React, { ReactNode } from 'react'
// 事件介绍
type IProps = {
    // click: ()=>void,
    click: (e: React.MouseEvent)=>void, // 事件 React.TouchEvent  不定义e的话，前面组件就拿不到e
    children: ReactNode
}

const Button = (props: IProps)=>{
    return (
        <button onClick={props.click}>{props.children}</button> 
    )
}
export default Button